package vn.egame.elockscreen.object;

import android.util.Log;

public class BaseActor {
	private int posX;
	private int posY;

	private int width;
	private int height;

	public int getPosX() {
		return posX;
	}

	public void setPosX(int posX) {
		this.posX = posX;
	}

	public int getPosY() {
		return posY;
	}

	public void setPosY(int posY) {
		this.posY = posY;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public void setPosition(int x, int y) {
		setPosX(x);
		setPosY(y);
	}

	public boolean isCollition(float x2, float y2) {

//		Log.d("Kai", getWidth() + " " + getHeight());
		return x2 > posX && x2 < posX + width && y2 > posY
				&& y2 < posY + height + 30;

	}
}
